import { defineStore } from 'pinia'
import type { taskType } from '../../types/task'

const useTaskStore = defineStore('task', {
  state: (): taskType => ({
    taskMsg: {
      list:[],
      file: '',
      projectsId: '',
      taskName: '',
      taskRequire: '',
      taskRole: '',
      taskScore: 0,
      taskskill: '',
      createDate:'',
      finishDate:'',
      taskState: '',
      modelChoose: {},
      taskDiscribe: '',
      taskAttachements: [{}],
      skillNeeds: [],
      contactWay: {
        linkman: '',
        phone: ''
      }
    },
    tempDescribe: '',
    tempTaskPeriod:[]
  })
})
export { useTaskStore }
